package com.itheima.mapper;

import com.itheima.entity.Emp;
import com.itheima.entity.EmpQueryParam;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EmpMapper {

//    Long count();
//
//    List<Emp> page(Integer start, Integer pageSize);

    List<Emp> list(EmpQueryParam param);

    //获取主键的值并赋给 id
    void add(Emp emp);

    void delete(List<Integer> ids);

    Emp getById(Integer id);


    void update(Emp emp);

    List<Emp> getList(Emp emp);
}